package com.suql.networktools

import java.text.SimpleDateFormat

/**
 * Created by Calm on 2018/3/1.
 * 网络模块常量
 */

object NetWorkConstants {
    val DEBUG = true
    val APPPREFERENCE_FILE_NAME = "Nakshatra_Aiot"
    val sdf8 = SimpleDateFormat("yyyy-MM-dd")//年月日格式化
    val DEV_TYPE_NUM = 12
    val CONTROL_ACK_SUCCESS = 0//成功
    val CONTROL_ACK_FAIL = 1//失败
    val CONTROL_ACK_MAC_NOT_EXIST = 2//mac不存在
    val CONTROL_ACK_TIMEOUT = 3//超时
    //未识别设备
    val DEV_TYPE_DONT_KONOW = 0
    //情景4按键面板
    val DEV_DES_PANEL_4KEY = "PANEL 4KEY"
    //虚拟设备
    val DEV_DES_VIRTUAL = "LOCAL-DEV "
    //红外
    val DEV_DES_INFRARED = "BT-IRALARM"
    //3开关
    val DEV_DES_3SWITCH = "3KEY SW+PM"
    val DEV_TYPE_3SWITCH = 1
    //插座
    val DEV_DES_SOCKET = "SOCKET+PM "
    val DEV_TYPE_SOCKET = 2
    //门锁
    val DEV_DES_LOCK = "BT CORE LK"
    val DEV_TYPE_LOCK = 3
    //单开关
    val DEV_DES_SWITCH = "ONE SW+PM "
    val DEV_TYPE_SWITCH = 4
    val DEV_FET_SWITCH_POWER = 17//获取电力电量
    val DEV_FET_SWITCH_CONTROL = 21
    //灯带
    val DEV_DES_STRIP = "LED STRIP "
    val DEV_DES_STRIP_3C = "LEDSTRP-3C"
    val DEV_TYPE_STRIP = 5
    val DEV_FET_STRIP = 19
    //红外TV
    val DEV_DES_INFRARED_TV = "REMT AC TV"
    val DEV_TYPE_INFRARED_TV = 6
    val DEV_FET_INFRARED_TV = 112
    //窗帘
    val DEV_DES_CURTAIN = "CURT DT52E"
    val DEV_TYPE_CURTAIN = 7
    val DEV_FET_CURTAIN = 87
    //LORA门禁
    val DEV_DES_LORA_ENTRANCE = "LORA MJ2.0"
    val DEV_DES_LORA_ENTRANCE_2K = "LORAMJ2.0K"
    val DEV_TYPE_LORA_ENTRANCE = 8
    //LORA门锁
    val DEV_DES_LORA_LOCK = "LORA CORE "
    val DEV_DES_LORA_LOCK_8015 = "LORA 8015 "
    val DEV_TYPE_LORA_LOCK = 9
    //温湿度传感器
    val DEV_DES_HUMITURE_SENSOR = "SEN-TMPHUM"
    val DEV_TYPE_HUMITURE_SENSOR = 10
    val DEV_FET_HUMITURE_SENSOR = 49
    //中央空调
    val DEV_DES_CENTER_AC = "LR-CENT-AC"
    val DEV_TYPE_CENTER_AC = 11
    val DEV_FET_CENTER_AC = 81
}
